package com.feng.study.demo.spring;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * 测试事务的传播行为
 */
@Service
@Slf4j
public class TransactionalPropagationDemo {
    public static void main(String[] args) {
//        propagationTest();
    }

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    public void propagationTest() {

    }


}
